/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.OCP.fixOCP.FixOCP.impl;

import za.ac.cput.principles.OCP.fixOCP.FixOCP.IfixOCP;

/**
 *
 * @author Dwayne
 */
public class LoanApproval implements IfixOCP
{
    @Override
    public int approveLoan(Validator validator)
    {
        if(validator.isValid() == true)
        {
            return 1;
        }
        else 
            return 2;
    }
}
